#include "DisplayCommand.h"
//@author A0097379H

DisplayCommand::DisplayCommand(string inputSentence){
	storage=Storage::getInstance();
	restOfCommand = inputSentence;
}

DisplayCommand::~DisplayCommand(){
}

string DisplayCommand::Execute()
{
	while (restOfCommand[0] == ' '){
		restOfCommand = restOfCommand.substr(1, restOfCommand.length() - 1);
	}
	return sort.executeCommand(restOfCommand, storage->getTaskList());
}


string DisplayCommand::Unexecute(){
	return "display";
}
